Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chore): implement yandex configuration in preset #228

Merged
merged 3 commits into from
Aug 26, 2023

Conversation

artem-malko
Copy link
Contributor

  • Implement a basic configuration for Oauth2 with Yandex

Checklist

* feat(chore): implement revoke token and revoke all token (fastify#222)

* feat(chore): update deps and implement gitlab provider

* feat(docs): implement gitlab configuration in preset

* feat(chore): implement revokeToken

* feat(tests): implement missing test in interface

* feat(chore,tests): implement revokeAllToken

* feat(chore): implement revokeAllToken

---------

Co-authored-by: joris <[email protected]>
@@ -0,0 +1,33 @@
const fastify = require('fastify')({ logger: { level: 'trace' } })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fastify/plugins I think the examples/ folder is becoming too big to ship

I would switch to a single generic example and add a custom one only if necessary

Not necessary to do it in this PR tho 👍🏼

index.js Outdated
authorizeHost: 'https://oauth.yandex.com',
authorizePath: '/authorize',
tokenHost: 'https://oauth.yandex.com',
tokenPath: '/token'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it have a revoke url?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeap, it has.

POST request to /revoke_token https://yandex.ru/dev/id/doc/en/tokens/token-invalidate#cleartext

So I can add it right now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it is done)

@@ -322,6 +322,17 @@ fastifyOauth2.EPIC_GAMES_CONFIGURATION = {
tokenPath: '/epic/oauth/v1/token'
}

/**
* Yandex ID docs https://yandex.ru/dev/id/doc/en/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good. I also thought that the lack of references is bad. Thank you for adding the reference.

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Over All LGTM

@Uzlopak Uzlopak changed the title * feat(chore): implement yandex configuration in preset feat(chore): implement yandex configuration in preset Aug 26, 2023
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit a73dd68 into fastify:master Aug 26, 2023
15 checks passed
@artem-malko artem-malko deleted the feature-add-yandex-provider branch August 26, 2023 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants